package s2elinshu.model;

public class SungJuk2VO {
	// 정보를 저장할 때 vo 클래스를 만든다.
	private String name;
	private char grd;
	private int kor;
	private int eng;
	private int mat;
	private int tot;
	private double avg;
	
	
	//생성자 만들기
	public SungJuk2VO(String name,int kor,int eng,int mat){
		this.name = name;
		this.kor = kor;
		this.eng = eng;
		this.mat = mat;
	}
	
	
	//  메서드
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}
	public  char getGrd() {return grd;}
	public void setGrd( char grd) {this.grd = grd;}
	public int getKor() {return kor;}
	public void setKor(int kor) {this.kor = kor;}
	public int getEng() {return eng;}
	public void setEng(int eng) {this.eng = eng;}
	public int getMat() {return mat;}
	public void setMat(int mat) {this.mat = mat;}
	public int getTot() {return tot;}
	public void setTot(int tot) {this.tot = tot;}
	public double getAvg() {return avg;}
	public void setAvg(double avg) {	this.avg = avg;}
	

	@Override
	public String toString() {
     String result = "";
     result += name+"/"+kor+"/"+eng+"/"+mat;
     result +="/"+tot+"/"+avg+"/"+grd;
		return result;
	}

}   // public class SungJuk2VO 
